<?php

/* We want to create button objects using this HTML template, and each time a button is created the object is added to the file "menu.php". The process is exactly the same as the Page class. */

class Button {

  // Create required variables
  var $ThisPage;
  var $ThisPage2;
  var $LinkText;

  // Navigation button template
  function Template2() {
    // Compares menu "page" with content "page"
    if ($this->ThisPage2 == $this->ThisPage) {
      echo '<li><strong>' . $this->LinkText . '</strong></li>';
    } else {
      echo '<li><a href="http://cit3.ldl.swin.edu.au/~mascot/cms/' . $this->ThisPage2 . '.php" title="' . $this->LinkText . '">' . $this->LinkText . '</a></li>';
    }
    echo "\n";
  }

  function DisplayThisPage2() {
    echo $this->ThisPage2;
  }

  function DisplayLinkText() {
    echo $this->LinkText;
  }

}

?>
